<%@ page import="service.NoteLabelsService" %>
<%@ page import="pojo.NoteLabels" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="service.impl.NoteLabelsServiceImpl" %>
<%@ page import="java.awt.*" %>
<%@ page import="pojo.Label" %>
<%@ page import="service.impl.LikesServiceImpl" %>
<%@ page import="pojo.Likes" %>
<%@ page import="service.LikesService" %><%--
  Created by IntelliJ IDEA.
  User: tangms
  Date: 2022/4/23
  Time: 21:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script src="script/jquery-3.3.1.js"></script>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    LikesService likesService=new LikesServiceImpl();
    ArrayList<Likes> likesList=likesService.likes(8);
    request.setAttribute("likesList",likesList);
    //    note的标签集合
    NoteLabelsService noteLabelsService=new NoteLabelsServiceImpl();
    ArrayList<NoteLabels> noteAllLabelsList=new ArrayList<>();
    noteAllLabelsList=noteLabelsService.noteLabelsList(48);
    ArrayList<Label> noteLabels=noteLabelsService.noteLabels(noteAllLabelsList);
    request.setAttribute("noteLabels",noteLabels);
    System.out.println(noteLabels);

%>
<br>
<h4>标签：</h4>
<c:forEach items="${likesList}" var="labels" varStatus="s">
    gggg
    <span>${labels.nid}&nbsp</span>
</c:forEach>
<br>

<c:forEach items="${noteLabels}" var="likes" varStatus="s">
<%--    <c:if test="${likes.nid==note.nid}">--%>
        fdfd
<%--    </c:if>--%>
</c:forEach>
frgrg
</body>
</html>
